package br.ufrn.dimap.validation;

import org.eclipse.xtext.validation.Check;

import br.ufrn.dimap.processDsl.Process;
import br.ufrn.dimap.processDsl.ProcessDslPackage;
 

public class ProcessDslJavaValidator extends AbstractProcessDslJavaValidator {

	@Check
	public void checkProcesStartsWithCapital(Process process) {
		if (!Character.isUpperCase(process.getName().charAt(0))) {
			warning("Name should start with a capital",  ProcessDslPackage.Literals.PROCESS__NAME);
		}
	}

}









